npm config set legacy-peer-deps true
npm install --save --legacy-peer-deps
# when any package is not installing and giving errors in npm npm install --save --legacy-peer-deps
npm install --force